::=========================================================================
::d~ NOM         : _NOM_
::d~ DESCRIPTION : _DESCRIPTION_
::d~ CATEGORIE   : _CAT_
::d~ LANGAGE     : _LANGAGE_
::d~ AUTEUR      : _AUTEUR_  
::d~ DATE        : _DATE_
::d~ VERSION     : _VERSION_
::=========================================================================

@echo off

set PROG=_NOM_.pl
set LOCALPERL=c:\usr\perl\bin\perl
set LOCALBIN=c:\usr\local\bin

::----------------------------------------------------------------------------------
:: gestion des options batch windows
::----------------------------------------------------------------------------------

if "%1"=="/@" goto description
if "%1"=="/d" goto description
if "%1"=="/?" goto HELP
if "%1"=="/h" goto HELP

if [%1]==[] goto HELP

::----------------------------------------------------------------------------------
:: lancement du script perl
::----------------------------------------------------------------------------------
%LOCALPERL% %LOCALBIN%\%PROG% %*

goto :EOF

::==================================================================================

::----------------------------------------------------------------------------------
::h~ _NOM_ - _DESCRIPTION_
::h~ 
::h~ USAGE
::h~ 
::h~ _NOM_
::h~
::h~ OPTIONS:	/? ou /h aide
::h~ 		/@ ou /d description
::h~ 
::h~
::----------------------------------------------------------------------------------

::==================================================================================
:HELP
for /f "tokens=1,* delims=~ " %%A in ('"findstr /b /c:"::h" "%~f0""') do echo.%%B
exit /b

::==================================================================================
:DESCRIPTION  >> %1.bat 
for /f "tokens=1,* delims=~ " %%A in ('"findstr /b /c:"::d" "%~f0""') do echo.%%B
exit /b 

